<script setup lang="ts">
import { ref } from 'vue'
import ApiUseApply from './api-use.vue'
import ApiPublishApply from './api-publish.vue'

const applyType = ref<'use' | 'publish'>('use')
</script>

<template>
  <div>
    <div class="bg-white p-4">
      <el-radio-group v-model="applyType">
        <el-radio-button label="use">接口申用审批记录</el-radio-button>
        <el-radio-button label="publish">接口发布审批记录</el-radio-button>
      </el-radio-group>
      <api-use-apply v-if="applyType === 'use'" />
      <api-publish-apply v-if="applyType === 'publish'" />
    </div>
  </div>
</template>
